Namespaces

Types in MathNet.Numerics.LinearAlgebra.Storage

Type MatrixStorage<T>

Namespace MathNet.Numerics.LinearAlgebra.Storage

Interfaces IEquatable<MatrixStorage<T>>

Methods

Properties

Fields

Public Methods

T[,] AsArray()

T[][] AsColumnArrays()

T[] AsColumnMajorArray()

T[][] AsRowArrays()

T[] AsRowMajorArray()

T At(int row, int column)

Retrieves the requested element without range checking.
Not range-checked.
Parameters
int row

The row of the element.

int column

The column of the element.

Return
T

The requested element.

void At(int row, int column, T value)

Sets the element without range checking.
WARNING: This method is not thread safe. Use "lock" with it and be sure to avoid deadlocks.
Parameters
int row

The row of the element.

int column

The column of the element.

T value

The value to set the element to.

void Clear()

void Clear(int rowIndex, int rowCount, int columnIndex, int columnCount)

void ClearColumns(Int32[] columnIndices)

void ClearRows(Int32[] rowIndices)

void CopyColumnTo(VectorStorage<T> target, int columnIndex, ExistingData existingData)

void CopyRowTo(VectorStorage<T> target, int rowIndex, ExistingData existingData)

void CopySubColumnTo(VectorStorage<T> target, int columnIndex, int sourceRowIndex, int targetRowIndex, int rowCount, ExistingData existingData)

void CopySubMatrixTo(MatrixStorage<T> target, int sourceRowIndex, int targetRowIndex, int rowCount, int sourceColumnIndex, int targetColumnIndex, int columnCount, ExistingData existingData)

void CopySubRowTo(VectorStorage<T> target, int rowIndex, int sourceColumnIndex, int targetColumnIndex, int columnCount, ExistingData existingData)

void CopyTo(MatrixStorage<T> target, ExistingData existingData)

IEnumerable<T> Enumerate()

IEnumerable<ValueTuple<int, int, T>> EnumerateIndexed()

IEnumerable<T> EnumerateNonZero()

IEnumerable<ValueTuple<int, int, T>> EnumerateNonZeroIndexed()

bool Equals(object obj)

Determines whether the specified Object is equal to the current Object.
Parameters
object obj

The Object to compare with the current Object.

Return
bool

true if the specified Object is equal to the current Object ; otherwise, false.

bool Equals(MatrixStorage<T> other)

Indicates whether the current object is equal to another object of the same type.
Parameters
MatrixStorage<T> other

An object to compare with this object.

Return
bool

true if the current object is equal to the other parameter; otherwise, false.

Tuple<int, int, T> Find(Func<T, bool> predicate, Zeros zeros)

Tuple<int, int, T, TOther> Find2<TOther>(MatrixStorage<T> other, Func<T, TOther, bool> predicate, Zeros zeros)

TState Fold2<TOther, TState>(MatrixStorage<T> other, Func<TState, T, TOther, TState> f, TState state, Zeros zeros)

void FoldByColumn<TU>(TU[] target, Func<TU, T, TU> f, Func<TU, int, TU> finalize, TU[] state, Zeros zeros)

The state array will not be modified, unless it is the same instance as the target array (which is allowed).

void FoldByRow<TU>(TU[] target, Func<TU, T, TU> f, Func<TU, int, TU> finalize, TU[] state, Zeros zeros)

The state array will not be modified, unless it is the same instance as the target array (which is allowed).

int GetHashCode()

Serves as a hash function for a particular type.
Return
int

A hash code for the current Object.

Type GetType()

bool IsMutableAt(int row, int column)

True if the specified field can be set to any value. False if the field is fixed, like an off-diagonal field on a diagonal matrix.

void Map2To(MatrixStorage<T> target, MatrixStorage<T> other, Func<T, T, T> f, Zeros zeros, ExistingData existingData)

void MapIndexedInplace(Func<int, int, T, T> f, Zeros zeros)

void MapIndexedTo<TU>(MatrixStorage<T> target, Func<int, int, T, TU> f, Zeros zeros, ExistingData existingData)

void MapInplace(Func<T, T> f, Zeros zeros)

void MapSubMatrixIndexedTo<TU>(MatrixStorage<T> target, Func<int, int, T, TU> f, int sourceRowIndex, int targetRowIndex, int rowCount, int sourceColumnIndex, int targetColumnIndex, int columnCount, Zeros zeros, ExistingData existingData)

void MapTo<TU>(MatrixStorage<T> target, Func<T, TU> f, Zeros zeros, ExistingData existingData)

T[,] ToArray()

T[][] ToColumnArrays()

T[] ToColumnMajorArray()

T[][] ToRowArrays()

T[] ToRowMajorArray()

string ToString()

void TransposeTo(MatrixStorage<T> target, ExistingData existingData)

Public Properties

bool IsDense get;

True if the matrix storage format is dense.

bool IsFullyMutable get;

True if all fields of this matrix can be set to any value. False if some fields are fixed, like on a diagonal matrix.

T Item get; set;

Gets or sets the value at the given row and column, with range checking.
This method is ranged checked. At and At to get and set values without range checking.
Value:

Public fields

int RowCount

return int

int ColumnCount

return int